Crystal projects don't properly install and build due to "pull" copying lib/ and bin/ folders from host
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
The initial error i got was:
`Failed to copy 'libevent-2.1.so.7': no such file or directory.`
This error occurs because the lib on the host system doesn't match the version on the snap's multipass instance. `shards install` doesn't update the lib/ and bin/ folder on the multipass instance, which leads to a stale build.
My current workaround is to delete the two folders on "pull" to ensure that the shards are built on the multipass instance:
```
override-pull: |
snapcraftctl pull
rm -rf $SNAPCRAFT_PART_SRC/lib $SNAPCRAFT_PART_SRC/bin
```
I'm not sure if this issue is specific to Crystal, or if the behaviour is fundamentally problematic, and built files from the host shouldn't be copied over at all. Potentially `.gitignore` could be considered.
If the issue is specific to Crystal we could add the delete command or something similar to https://github.com/snapcore/snapcraft/blob/master/snapcraft/plugins/v1/crystal.py#L92.
Evaluation history
No evaluation history available.